import VueI18n from 'vue-i18n'

import en from './en.json'
import zhHans from './zh-Hans.json'
import zhTW from './zh-TW.json'
import ruRU from './ru-RU.json'
import jaCN from './ja.json'
import ptBr from './pt-br.json'
const messages = {
	'en': en,
	'zh-Hans': zhHans,
	'zh-TW': zhTW,
	'ru-RU': ruRU,
	'ja': jaCN,
	'pt-br': ptBr,
}

let i18nConfig = {
	locale: uni.getStorageSync('language') || uni.getLocale(), // 获取已设置的语言
	messages
}



export default i18nConfig